home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat2
/
shutdown.0
< prev
next >
Wrap
Text File
|
1996-09-01
|
1KB
|
38 lines
SHUTDOWN(2) UNIX Programmer's Manual SHUTDOWN(2)
NNAAMMEE
sshhuuttddoowwnn - shut down part of a full-duplex connection
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssyyss//ssoocckkeett..hh>>
_i_n_t
sshhuuttddoowwnn(_i_n_t _s, _i_n_t _h_o_w)
DDEESSCCRRIIPPTTIIOONN
The sshhuuttddoowwnn() call causes all or part of a full-duplex connection on the
socket associated with _s to be shut down. If _h_o_w is 0, further receives
will be disallowed. If _h_o_w is 1, further sends will be disallowed. If
_h_o_w is 2, further sends and receives will be disallowed.
DDIIAAGGNNOOSSTTIICCSS
A 0 is returned if the call succeeds, -1 if it fails.
EERRRROORRSS
The call succeeds unless:
[EBADF] _S is not a valid descriptor.
[ENOTSOCK] _S is a file, not a socket.
[ENOTCONN] The specified socket is not connected.
SSEEEE AALLSSOO
connect(2), socket(2)
HHIISSTTOORRYY
The sshhuuttddoowwnn() function call appeared in 4.2BSD.
4.2 Berkeley Distribution June 4, 1993 1